{extend name='main'}

{block name="button"}

{/block}

{block name="content"}
<div class="think-box-shadow">
    {include file='early_warn_record/index_search'}
    <table class="layui-table margin-top-10" lay-skin="line">
        {notempty name='list'}
        <thead>
        <tr>
            <th class='list-table-check-td think-checkbox'>
                <label><input data-auto-none data-check-target='.list-check-box' type='checkbox'></label>
            </th>
            <th class='text-center nowrap'>编号</th>
            <th class='text-left nowrap'>门店名称</th>
            <th class='text-left nowrap'>预警时间</th>
            <th class='text-left nowrap'>考勤日期</th>
            <th class='text-left nowrap'>备注</th>
            <th class='text-left nowrap'>考勤状态</th>
            <th class='text-left nowrap'>状态</th>
            <th class='text-left nowrap'>短信状态</th>
            <th class='text-left nowrap'>发送时间</th>
            <th class='text-left nowrap'>发送结果</th>
            <th class='text-left nowrap'>模板发送</th>
            <th class='text-left nowrap'>模板发送时间</th>
        </tr>
        </thead>
        {/notempty}
        <tbody>
        {foreach $list as $key => $vo}
        <tr data-dbclick>
            <td class='list-table-check-td think-checkbox'>
                <label><input class="list-check-box" value='{$vo.id}' type='checkbox'></label>
            </td>
            <td class='text-center'>{$vo.id|default=''}</td>
            <td class='text-left'>{$vo.shop_name|default=''}</td>
            <td class='text-left'>{$vo.inspection_time|date='Y-m-d H:i:s'|default=''}</td>
            <td class='text-left'>{$vo.date|default=''}</td>
            <td class='text-left' data-tips-text="{$vo.remarks}">{$vo.remarks|omit|default=''}</td>
            <td class='text-left'>
                {if $vo.type eq 1} <span style="color: #5FB878">上班</span> {else} <span style="color: #925cc3">下班</span> {/if}
            </td>
            <td class='text-left'>
                {if $vo.status eq 1} <span style="color: green">正常</span> {else} <span style="color: red">异常</span> {/if}
            </td>
            <td class='text-left'>
                {if $vo.status eq 1}不发送{else}{if $vo.is_send eq 1}待发送{else}已发送{/if}{/if}
            </td>
            <td class='text-left'>{if $vo.is_send eq 2}{$vo.send_time|date='Y-m-d H:i:s'|default=''}{else}-{/if}</td>
            <td class='text-left'>
                {if $vo.status eq 1}-{else}{$vo.send_msg|default='-'}{/if}
            </td>
            <td class='text-left'>
                {if $vo.status eq 1}
                不发送
                {else}
                {if $vo.is_send_wxtpl eq 1} <span style="color: #8D8D8D">待发送</span> {elseif $vo.is_send_wxtpl eq 2} <span style="color: #01AAED">已发送</span> {/if}
                {/if}
            </td>
            <td class="text-left">
                {if $vo.wxtpl_send_time neq ''}
                {$vo.wxtpl_send_time|date='Y-m-d H:i:s'}
                {else}
                -
                {/if}
            </td>
        </tr>
        {/foreach}
        </tbody>
    </table>
    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
</div>
{/block}